Update util.py: Fix join_path function#119
Conversation
|
Would it make more sense to just replace join_path with the standard library equivalent os.path.join? |
There was a problem hiding this comment.
This change alters the meaning of this loop entirely, as any token (to be appended) which looks like an absolute path will completely replace the path concatenated so far.
The original intention of this function is to treat every path token (b) as relative path, which is what this portion tries to accomplish.
Unfortunately I don't know the reason for doing this, as nowadays I would prefer an assertion as all tokens should be relative.
|
|
No description provided.